package com.hb.trade.api.im.chat.controller;


import cn.hutool.json.JSONUtil;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.fzzn.core.model.msg.ResponseDto;
import org.fzzn.core.model.websocket.SocketMessageEntity;
import org.fzzn.core.util.ResultUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 好友记录表 前端控制器
 *
 * @author zhaojk
 * @since 2021-12-30
 */
@RestController
public class ChatFriendController {

    @PostMapping("/test/chatFriend/hbimtest")
    public ResponseDto<?> hbimtest(@RequestBody SocketMessageEntity messageEntity) {
        messageEntity.setContentData(JSONUtil.createObj().putOpt("aaa", "abbbbbbb"));
        return ResultUtil.msg(true, messageEntity);
    }
}
